
#ifndef __EVENTRPC_EVENT_POLLER_H_
#define __EVENTRPC_EVENT_POLLER_H_

namespace eventrpc {
  class Event;

  class EventPoller {
  public:
    EventPoller();

    ~EventPoller();

    void Loop();

    void Stop();

    void AddEvent(short event, Event *ev);
    void DelEvent(short event, Event *ev);

  private:
    struct Impl;
    Impl *impl_;
  };
};

#endif  // __EVENTRPC_EVENT_POLLER_H_
